<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html >
<html>
<head>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。 
	pageContext.setAttribute("basePath", basePath);
	//out.write(basePath);
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="<%=basePath %>bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="<%=basePath %>bootstrap/css/bootstrap.css" rel="stylesheet" />
<script src="<%=basePath %>bootstrap/js/jquery-1.6.2.js"></script>
<script src="<%=basePath %>bootstrap/js/jquery.min.js"></script>
<script src="<%=basePath %>bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="<%=basePath %>logined/js/jquery-easyui-1.3.5/themes/gray/easyui.css"/>
<link rel="stylesheet" type="text/css" href="<%=basePath %>logined/js/jquery-easyui-1.3.5/themes/icon.css" />
<script type="text/javascript" src="<%=basePath %>logined/js/jquery-easyui-1.3.5/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="<%=basePath %>logined/js/jquery-easyui-1.3.5/jquery.easyui.min.js"></script>

<style type="text/css">
	label{
		text-align: right;
	}
</style>
</head>
<body class="easyui-layout" >
<div id="body" region="center" > 
  <!-- 查询条件区域 -->
		<form action="./../../SearchCourse" method="post">
		  <input type="hidden"  id="txtTeCode" name="txtTeCode"	value="${loginedUser.usercode}">
			<div id="search_area">
				<div id="conditon">
					<div class="form-group" style="padding-left:">
						<div>
							<label class="col-sm-2 control-label">老师</label>
							<div class="col-sm-10" style="width: 300px">
								<table>
									<tr><td>${loginedUser.usercode}</td>
									</tr>
								</table>
							</div>
						</div>
						<div>
							<label class="col-sm-2 control-label">课程</label>
							<div class="col-sm-10" style="width: 300px">
								<select class="form-control" id="textCourse" name="textCourse">
									<c:forEach items="${sessionScope.course }" var="eachCo"  varStatus="course">
							            <input type="hidden"  id="txtCourseid" name="txtCourseid"	value="${eachCo.courseid }">
										<option value="${eachCo.coursename }">${eachCo.coursename }</option>
									</c:forEach>
								</select>
							</div>
						</div>
					</div>
					<div>
						<a href="javascript:void(0)"
							class="easyui-linkbutton my-search-button" iconCls="icon-search"
							plain="true">查询</a> <a href="javascript:void(0)"
							class="easyui-linkbutton my-search-button" iconCls="icon-reset"
							plain="true">重置</a>
					</div>
				</div>
			</div>
		</form>
		<form action="">
		<div class="bs-example">
			<table class="table table-hover">
				<thead>
					<tr>
						<th>#</th>
						<th>学号</th>
						<th>姓名</th>
						<th>课程</th>
						<th>老师</th>
						<th>成绩</th>
						<th>修改</th>
					</tr>
				</thead>
				<tbody>
				
				<c:forEach items="${sessionScope.lstStus }" var="eachStu" varStatus="st">
						<input type="hidden"  id="txtUserid" name="txtUserid"	value="${eachStu.stuId }">
					<tr>
						<td>${st.index+1 }</td>			
						<td>${eachStu.stuCode }</td>
						<td>${eachStu.stuName }</td>
						<td>${eachStu.sex }</td>
						<td>${eachStu.age }</td>
						<td>${eachStu.phone }</td>
						<td><a href="ModifyStudent?stuId=${eachStu.stuId }&opt=0">修改</a></td>
											</tr>
				</c:forEach>
				</tbody>
			</table>
			<div  class="form-group" >
               <div class="col-sm-offset-4 col-sm-1" >
               <button type="submit" class="btn btn-default button1" >确认</button>
               </div>
               <div class="col-sm-1">
               <button type="reset" class="btn btn-default  button2" >取消</button>
               </div>
            </div>
		</div>
		</form>
	</div>

</body>
</html>